package com.kh.statistics.video.core.statistics.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @BelongsProject: statistics
 * @BelongsPackage: com.kh.statistics.video.core.statistics.entity
 * @Author: Hong.Kong
 * @CreateTime: 2024-05-31  17:19
 * @Description: TODO
 * @Version: 1.0
 */
@NoArgsConstructor
@Data
public class DouYinReq {

    @JsonProperty("data_range")
    private DataRangeDTO dataRange;
    @JsonProperty("filters")
    private List<FiltersDTO> filters;
    @JsonProperty("offset")
    private Integer offset;
    @JsonProperty("limit")
    private Integer limit;
    @JsonProperty("all")
    private Boolean all;

    @NoArgsConstructor
    @Data
    public static class DataRangeDTO {
        @JsonProperty("start_date")
        private String startDate;
        @JsonProperty("end_date")
        private String endDate;
    }

    @NoArgsConstructor
    @Data
    public static class FiltersDTO {
        @JsonProperty("field")
        private String field;
        @JsonProperty("values")
        private List<String> values;
    }
}
